<?php
error_reporting(0);
$serverip=$_GET['serverip'];
$port=$_GET['port'];
$fp = fsockopen ($serverip, $port, $errno, $errstr, 3);
if (!$fp)
  $icecast_status="<span style='color:red;'>Выключен</span>";
else
  $icecast_status="<span style='color:green;'>Включен</span>";
echo "<b>Статус сервера</b>: ".$icecast_status;


?>